using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using PluginHandler.UI;

namespace OraclePlugin.UI
{
    class FormElements : IFormElements
    {
        private Form _aboutForm;
        private UserControl _connectionDialog;
        private UserControl _connectionDetails;

        #region IFormElements Member

        public Form AboutForm
        {
            get 
            {
                if (_aboutForm == null)
                    _aboutForm = new AboutForm();

                return _aboutForm;
            }
        }

        public UserControl ConnectionSettings
        {
            get 
            {
                if (_connectionDialog == null)
                    _connectionDialog = new ConnectionDialog();

                return _connectionDialog;
            }
        }

        public UserControl ConnectionDetails
        {
            get 
            {
                if (_connectionDetails == null)
                    _connectionDetails = new ConnectionDetails();

                return _connectionDetails;
            }
        }

        #endregion
    }
}
